package tr.mesir.dao;

import java.util.List;

import org.apache.lucene.queryParser.ParseException;

import tr.mesir.domain.AddressBook;

/**
 * Contract for AddressBookDAO
 * 
 * @author mertcaliskan
 */
public interface AddressBookDAO {

	AddressBook loadById(Long id);
	
	void save(AddressBook addressBook);
	
	void update(AddressBook addressBook);
	
	void delete(AddressBook addressBook);
	
	List<AddressBook> loadAll();
	
	List<AddressBook> findByWord(String searchWord) throws ParseException;
	
	List<AddressBook> getAddressBookVersions(Long id);
	
	List<String> findAllTitles();
}